/*
 * @Author: your name
 * @Date: 2021-08-24 10:19:29
 * @LastEditTime: 2021-09-14 17:02:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \bigdate\src\main.ts
 */

import { createApp } from 'vue'
import 'ant-design-vue/dist/antd.css'
import { store, key } from './store'
import App from './App.vue'
import { router } from './router/index'
import 'vite-plugin-svg-icons/register'
import I18n from './setting/locales/setlocales'
// 将icon注册到全局
import { svgIcon } from './components/Icons'
import { setupDirectives } from '@/directives'
import './ntils/loginfo/loginfo'
import { useAntdComp } from '@/hooks/useAntd';
const app = createApp(App)
app.component('SvgIcon', svgIcon)
app.use(router).use(I18n).use(store, key)
.mount('#app')
setupDirectives(app);
useAntdComp(app);